package com.demo.config;

/**
 * @author 赵嘉奇  86157
 * @date2021-08-02-13:35
 */

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * websocket的配置类
 * @author user
 * @version 1.0
 */
@Configuration
public class WebsocketConfig implements WebSocketMessageBrokerConfigurer {


    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }
}


